SET MATRIX NORMAL

This command will set the individual normal of a point within the matrix.

  Syntax
SET MATRIX NORMAL Matrix Number, TileX, TileZ, NX, NY, NZ
  Parameters
Matrix Number
Integer
The matrix number
TileX
Integer
The x position
TileZ
Integer
The y position
NX
Float
The normal x
NY
Float
The normal y
NZ
Float
The normal z

  Returns

This command does not return a value.

  Description

The normal is a projected direction away from the vertex position that instructs the matrix how to take light for that point. You can use matrix normals to affect how the matrix is lit and at what strength. The matrix number and tile reference values should be integer values. The normal values should be real numbers.

  Example Code
make matrix 1,1000,1000,25,25
position matrix 1,0,0,0
set matrix normal 1, 5, 5, 30.0, 20.0, 10.0
update matrix 1
do
loop
if matrix exist(1)=1 then delete matrix 1
end
  See also

MATRIX Commands Menu
Index